.class public Ldata/RunOrderData;
.super Landroid/widget/BaseAdapter;
.source "RunOrderData.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Ldata/RunOrderData$Holder;
    }
.end annotation


# instance fields
.field c:Landroid/content/Context;

.field h:Landroid/os/Handler;

.field lf:Landroid/view/LayoutInflater;

.field ls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/Runbean;",
            ">;"
        }
    .end annotation
.end field

.field m:Lmyapp/MyApp;

.field private mListView:Landroid/widget/ListView;

.field showdel:Z

.field showdisticnt:I


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;Landroid/content/Context;Landroid/widget/ListView;Landroid/os/Handler;Z)V
    .locals 0
    .param p1, "context"    # Landroid/content/Context;
    .param p3, "cc"    # Landroid/content/Context;
    .param p4, "dd"    # Landroid/widget/ListView;
    .param p5, "hd"    # Landroid/os/Handler;
    .param p6, "showdelete"    # Z
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List",
            "<",
            "Lbean/Runbean;",
            ">;",
            "Landroid/content/Context;",
            "Landroid/widget/ListView;",
            "Landroid/os/Handler;",
            "Z)V"
        }
    .end annotation

    .prologue
    .line 47
    .local p2, "list":Ljava/util/List;, "Ljava/util/List<Lbean/Runbean;>;"
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 49
    check-cast p3, Lmyapp/MyApp;

    .end local p3    # "cc":Landroid/content/Context;
    iput-object p3, p0, Ldata/RunOrderData;->m:Lmyapp/MyApp;

    .line 50
    iput-object p1, p0, Ldata/RunOrderData;->c:Landroid/content/Context;

    .line 51
    iput-object p2, p0, Ldata/RunOrderData;->ls:Ljava/util/List;

    .line 52
    iput-object p4, p0, Ldata/RunOrderData;->mListView:Landroid/widget/ListView;

    .line 53
    iput-boolean p6, p0, Ldata/RunOrderData;->showdel:Z

    .line 54
    iput-object p5, p0, Ldata/RunOrderData;->h:Landroid/os/Handler;

    .line 55
    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 60
    iget-object v0, p0, Ldata/RunOrderData;->ls:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .param p1, "position"    # I

    .prologue
    .line 66
    const/4 v0, 0x0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .param p1, "position"    # I

    .prologue
    .line 72
    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5
    .param p1, "arg0"    # I
    .param p2, "view"    # Landroid/view/View;
    .param p3, "arg2"    # Landroid/view/ViewGroup;

    .prologue
    .line 78
    if-nez p2, :cond_0

    .line 79
    new-instance v1, Ldata/RunOrderData$Holder;

    invoke-direct {v1, p0}, Ldata/RunOrderData$Holder;-><init>(Ldata/RunOrderData;)V

    .line 81
    .local v1, "holder":Ldata/RunOrderData$Holder;
    iget-object v2, p0, Ldata/RunOrderData;->c:Landroid/content/Context;

    invoke-static {v2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v2

    const v3, 0x7f03007b

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 83
    const v2, 0x7f0c0013

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ldata/RunOrderData$Holder;->tv1:Landroid/widget/TextView;

    .line 84
    const v2, 0x7f0c00e0

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ldata/RunOrderData$Holder;->tv2:Landroid/widget/TextView;

    .line 85
    const v2, 0x7f0c0151

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ldata/RunOrderData$Holder;->tv3:Landroid/widget/TextView;

    .line 87
    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 92
    :goto_0
    iget-object v2, p0, Ldata/RunOrderData;->ls:Ljava/util/List;

    invoke-interface {v2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/Runbean;

    .line 93
    .local v0, "bean":Lbean/Runbean;
    iget-object v2, v1, Ldata/RunOrderData$Holder;->tv1:Landroid/widget/TextView;

    invoke-virtual {v0}, Lbean/Runbean;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 94
    invoke-virtual {v0}, Lbean/Runbean;->getDet()Ljava/lang/String;

    move-result-object v2

    const-string v3, "1"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 95
    iget-object v2, v1, Ldata/RunOrderData$Holder;->tv2:Landroid/widget/TextView;

    const-string v3, "\u5e2e\u6211\u9001"

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 100
    :goto_1
    iget-object v2, v1, Ldata/RunOrderData$Holder;->tv3:Landroid/widget/TextView;

    invoke-virtual {v0}, Lbean/Runbean;->getStatus()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 101
    return-object p2

    .line 89
    .end local v0    # "bean":Lbean/Runbean;
    .end local v1    # "holder":Ldata/RunOrderData$Holder;
    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ldata/RunOrderData$Holder;

    .restart local v1    # "holder":Ldata/RunOrderData$Holder;
    goto :goto_0

    .line 97
    .restart local v0    # "bean":Lbean/Runbean;
    :cond_1
    iget-object v2, v1, Ldata/RunOrderData$Holder;->tv2:Landroid/widget/TextView;

    const-string v3, "\u5e2e\u6211\u4e70"

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1
.end method
